package com.yb.core.annotation;

import com.yb.core.annotation.repeatable.Decrypts;
import com.yb.core.constant.SecureConstant;

import java.lang.annotation.*;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Repeatable(Decrypts.class)
public @interface Decrypt {
    SecureConstant.Algorithm algorithm() default SecureConstant.Algorithm.RSA;
    String[] fields();
}
